home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / MPW_TOOL / TOOLS / TOOLS_WI / BYACC__ / DEP.H < prev    next >
Text File  |  1989-11-19  |  1KB  |  39 lines

  1. /************************************************************************
  2. *                                                                        *
  3. *  Dep.h contains some machine-dependent definitions.                    *
  4. *                                                                        *
  5. ************************************************************************/
  6.  
  7.  
  8. #ifndef DEP
  9. #define DEP
  10.  
  11. #ifdef AZTECC
  12. #define MAXDIGITS    12
  13. #define MININT        -32768
  14. #define    MINSTR        "-32768"
  15. #define    MAXCHAR        255
  16. #define    MAXSHORT    32767
  17. #define MINSHORT    -32768
  18. #define    MAX_TOKEN_NUMBER    MAXSHORT
  19. #define BITS_PER_WORD    16
  20. #define    WORDSIZE(n)    (((n)+(BITS_PER_WORD-1))/BITS_PER_WORD)
  21. #define    ROWSIZE(n)    (sizeof(unsigned)*WORDSIZE(n))
  22. #define    BIT(r, n)    ((((r)[(n) >> 4]) >> ((n) & 15)) & 1)
  23. #define    SETBIT(r, n)    ((r)[(n) >> 4] |= (1 << ((n) & 15)))
  24. #else
  25. #define MAXDIGITS    12
  26. #define MININT        -2147483648
  27. #define    MINSTR        "-2147483648"
  28. #define    MAXCHAR        255
  29. #define    MAXSHORT    32767
  30. #define MINSHORT    -32768
  31. #define    MAX_TOKEN_NUMBER    MAXSHORT
  32. #define BITS_PER_WORD    32
  33. #define    WORDSIZE(n)    (((n)+(BITS_PER_WORD-1))/BITS_PER_WORD)
  34. #define    ROWSIZE(n)    (sizeof(unsigned)*WORDSIZE(n))
  35. #define    BIT(r, n)    ((((r)[(n) >> 5]) >> ((n) & 31)) & 1)
  36. #define    SETBIT(r, n)    ((r)[(n) >> 5] |= (1 << ((n) & 31)))
  37. #endif
  38. #endif
  39.